<%--
  Created by IntelliJ IDEA.
  edu.sctu.User: Administrator
  Date: 2018/4/26
  Time: 19:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int number = Integer.parseInt(request.getParameter("number"));
    int sum = 0;
    for (int i = 1;i<=number;i++){
        sum = sum+i;
    }
    out.write("1到"+number+"的连续和为"+sum);
%>
</body>
</html>
